﻿using System;
using System.Windows;
using System.Diagnostics;

namespace SoSlam.SilverlightClient.SoSlamGame
{
	public partial class App
	{
		public App()
		{
			Startup += OnStartup;
			UnhandledException += OnUnhandledException;
			InitializeComponent();
		}

		private void OnStartup(object sender, StartupEventArgs e)
		{
			RootVisual = new MainPage();
		}

		private void OnUnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
		{
            if (Debugger.IsAttached)
            {
                Debugger.Break();
            }
		}
	}
}
